package net.zbus.rpc;


import java.util.HashMap;
import java.util.Map;

import net.zbus.ClientPool;
import net.zbus.ClientPoolConfig;

public class ApexRPC {

	public static void main(String[] args){
		ClientPoolConfig config = new ClientPoolConfig();
		config.setHost("10.60.60.13");
		config.setPort(15555);

		ClientPool pool = new ClientPool(config);

		Rpc rpc = new Rpc(pool, "TRADE");
		rpc.disableRemoteObject();
		rpc.setEncoding("GBK");
		
		Map<String,Object> user = new HashMap<String, Object>(); 
		user.put("1756", "651004");//产品代码 
		 
		Object res = rpc.invoke("1220001", user);  
		System.out.println(res); 
		
		
		pool.destroy();
	}
}
